package com.example.content.fragment.me.coin

import androidx.fragment.app.Fragment
import com.example.content.*
import com.example.content.databinding.FragmentCashOutBinding
import com.example.content.databinding.FragmentChargeBinding
import com.example.content.fragment.BaseMvvmFragment
import com.example.content.manager.ActivityMgr
import com.example.content.viewmodule.me.MyPageCommonViewModel

class CashOutFragment  : BaseMvvmFragment<FragmentCashOutBinding, MyPageCommonViewModel>() {


    override fun initView() {
        dataBinding.titleBar.title.text = getString(R.string.cash_out)
    }

    override fun initListener() {
        dataBinding.titleBar.backIcon.setOnClickListener {
            activity?.finish()
        }
        dataBinding.certification.setOnClickListener {
            ActivityMgr.startFragment(ME_CERTIFICATION_TYPE)
        }
        dataBinding.bankSelect.setOnClickListener {
            ActivityMgr.startFragment(ME_SELECT_PAY_CARD_TYPE)
        }
        dataBinding.cashOutBtn.setOnClickListener {
            ActivityMgr.startFragment(ME_PAY_VERIFY_TYPE)
        }
    }

    override fun getViewModuleClass(): Class<MyPageCommonViewModel> {
        return MyPageCommonViewModel::class.java
    }

    override fun getLayoutId() = R.layout.fragment_cash_out

    companion object {
        @JvmStatic
        fun newInstance() = CashOutFragment()
    }
}